package com.dongdongshop.service;

import com.dongdongshop.vo.SpecVo;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;

import java.util.List;

public interface SpecificationService {

    //查询全部规格
    List<TbSpecification> findAll(String specName);

    //增加方法
    void insertSpecAndOption(TbSpecification specification, List<TbSpecificationOption> optionList);

    //回显操作
    SpecVo specificationService(Long id);

    //修改操作
    void updateSpecAndOption(TbSpecification specification, List<TbSpecificationOption> optionList);

    //删除操作
    void deleteBrand(Long[] ids);
}
